package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.Menu;
import com.pactera.miyuangroup.vo.response.web.MenuRes;
import com.pactera.miyuangroup.vo.response.web.TreeMenuRes;
import org.mapstruct.Mapper;

import java.util.List;

/**
 * 菜单
 *
 * @author Wangwu
 * @create 2018-04-20 上午11:23
 **/
@Mapper(componentModel = "spring")
public interface MenuConvert {

    /**
     * 批量数据库转页面对象
     *
     * @param objs
     * @return
     */
    List<MenuRes> convert2MenuRes(List<Menu> objs);


    TreeMenuRes convert2TreeMenuRes(Menu obj2);
}
